package com.qiandw

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder

object TestAuth extends scala.App{
  println("hello world!")
  val passwordEncoder = new BCryptPasswordEncoder()
  val encodeStr = passwordEncoder.encode("0")
  println(encodeStr)

  val passwordEncoder2 = UsePasswordEncoderFactories.createDelegatingPasswordEncoder(UsePasswordEncoderFactories.MD5)
  val encoderStr2 = passwordEncoder2.encode("password")
  println(encoderStr2)
}
